package kr.saeildamil.androidstudy.ch05;

import kr.saeildamil.androiddforstudy.R;
import kr.saeildamil.androidstudy.exam.NameCard01;
import kr.saeildamil.androidstudy.gravity.GravityEX01;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class Ch05Main extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch05_main);
	}

	public void mOnClick(View v) {
		Intent intent = new Intent();
		switch (v.getId()) {
		case R.id.ch05_btn01:
			intent.setClass(this, GravityEX01.class);
			break;
		case R.id.ch05_btn02:
			intent.setClass(this, PaddingEX.class);
			break;
		case R.id.ch05_btn03:
			intent.setClass(this, RelativeEX.class);
			break;
		case R.id.ch05_btn04:
			intent.setClass(this, NameCard01.class);
			break;
		case R.id.ch05_btn05:
			intent.setClass(this, FrameEX.class);
			break;
		case R.id.ch05_btn06:
			intent.setClass(this, TableEX.class);
			break;
		}
		startActivity(intent);
	}
}
